Skip to content

Avoid creating singleton classes for non-namespace targets#623

Open
vinistock wants to merge 1 commit into03-02-auto_promote_when_creating_constants_inside_namespacefrom
03-02-avoid_creating_singleton_classes_for_non-namespace_targets
Open

Avoid creating singleton classes for non-namespace targets#623
vinistock wants to merge 1 commit into03-02-auto_promote_when_creating_constants_inside_namespacefrom
03-02-avoid_creating_singleton_classes_for_non-namespace_targets

Conversation

@vinistock
Copy link
Member

@vinistock vinistock commented Mar 2, 2026

We were incorrectly creating singleton classes for non promotable constants. For example:

CONST = 1

class << CONST
end

Would result in CONST::<CONST> existing, which is not correct. This PR fixes that.

Copy link
Member Author

vinistock commented Mar 2, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Mar 2, 2026
@vinistock vinistock added the bugfix A change that fixes an existing bug label Mar 2, 2026 — with Graphite App
@vinistock vinistock marked this pull request as ready for review March 2, 2026 19:09
@vinistock vinistock requested a review from a team as a code owner March 2, 2026 19:09
@vinistock vinistock force-pushed the 03-02-avoid_creating_singleton_classes_for_non-namespace_targets branch from 9431446 to 8f9a3c1 Compare March 2, 2026 19:12
@vinistock vinistock force-pushed the 03-02-auto_promote_when_creating_constants_inside_namespace branch from 41ee85d to 5414794 Compare March 2, 2026 19:12
@vinistock vinistock force-pushed the 03-02-auto_promote_when_creating_constants_inside_namespace branch from 5414794 to cc10553 Compare March 2, 2026 19:59
@vinistock vinistock force-pushed the 03-02-avoid_creating_singleton_classes_for_non-namespace_targets branch from 8f9a3c1 to 2d6e58d Compare March 2, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix A change that fixes an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant